package com.example.capturetheflag.helper;

import org.json.JSONArray;
import org.json.JSONObject;

import com.google.android.maps.GeoPoint;

import android.app.Application;

public class Singleton extends Application{
	
	public boolean team;
	public boolean flag;
	//public boolean point;
	public int latitude;
	public int longitude;
	public JSONArray playersPossition;
	public JSONObject gameField;
	public GeoPoint a;
	public GeoPoint c;
	//public boolean getterOK;
	public String gameID;
	public String playerID;
	public String gameName;
	public int points;

	private static Singleton instance = new Singleton();	
	
	public static synchronized Singleton getInstance() {
        return instance;
    }
	
	 public void clear()  
	  {  
	    instance = null;  
	  }  
}